projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3cc3936
)
Memory leak fixed.
author
oliskoli
<oliskoli>
Mon, 16 Jan 2006 22:16:08 +0000
(22:16 +0000)
committer
oliskoli
<oliskoli>
Mon, 16 Jan 2006 22:16:08 +0000
(22:16 +0000)
google.c
patch
|
blob
|
history
diff --git
a/google.c
b/google.c
index 6a637a462883d910d943cdb304030a06fa0c1e31..d73d4e6cdcb6bd581d02e61e19feab4cf7598a97 100644
(file)
--- a/
google.c
+++ b/
google.c
@@
-258,6
+258,16
@@
static void
google_read(void)
{
xml_read();
+ if ( encoded_points )
+ {
+ xfree( encoded_points );
+ encoded_points = NULL;
+ }
+ if ( encoded_levels )
+ {
+ xfree( encoded_levels );
+ encoded_levels = NULL;
+ }
if ( script )
{
char *xml = strchr( script, '\'' );